import redis



def getValue():
    pool = redis.ConnectionPool(host='localhost',port=6379,decode_responses=True)
    r = redis.Redis(connection_pool=pool)
    r.set('gender','male')
    print(r.get('gender'))

if __name__== '__main__':
    getValue()